<%@ page contentType="text/html; charset=utf-8" %>

<table class="navHeadTableBg" width="100%" border="0" cellpadding="0" cellspacing="0">

  <tr>
	<td class="logo"></td>
    <td valign="bottom" align="left" height="30">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td id="0" valign="bottom" class="nav1 navSelectedCell navCell" onclick="changeTab(this.id)">
         	<img src="<c:url value='/images/navTxtSpace.gif' />"><a href="adminViewIndex.html" target="mainIndex">首页</a><img src="<c:url value='/images/navTxtSpace.gif' />">
         </td>
<sec:accesscontrollist hasPermission="${P_ADMIN_STR}" secureId="${MODULE_MYPLAN_CODE}" secureType="${MODULE_MYPLAN_TYPE}">
         <td class="navSeperator">
         	<img src="<c:url value='/images/spacer.gif' />" width="1">
         </td>
         <td id="1" valign="bottom" class="nav2 navUnSelectedCell navCell" onclick="changeTab(this.id)">
         	<img src="<c:url value='/images/navTxtSpace.gif' />"><a href="<c:url value='/plan/planMain.html' />" target="main">我的计划任务</a>
         	<img src="<c:url value='/images/navTxtSpace.gif' />">
         </td>
</sec:accesscontrollist>
<sec:accesscontrollist hasPermission="${P_ADMIN_STR}" secureId="${MODULE_SUB_CODE}" secureType="${MODULE_SUB_TYPE}">
         <td class="navSeperator">
         	<img src="<c:url value='/images/spacer.gif' />" width="1">
         </td>
         <td id="2" valign="bottom" class="nav3 navUnSelectedCell navCell" onclick="changeTab(this.id)">
         	<img src="<c:url value='/images/navTxtSpace.gif' />"><a href="<c:url value='/subordinate/subordinateMain.html' />" target="main">下属工作跟踪</a>
         	<img src="<c:url value='/images/navTxtSpace.gif' />">
         </td>
</sec:accesscontrollist>
<sec:accesscontrollist hasPermission="${P_ADMIN_STR}" secureId="${MODULE_PROJMGMT_CODE}" secureType="${MODULE_PROJMGMT_TYPE}">
         <td class="navSeperator">
         	<img src="<c:url value='/images/spacer.gif' />" width="1">
         </td>
         <td id="3" valign="bottom" class="nav4 navUnSelectedCell navCell" onclick="changeTab(this.id)">
         	<img src="<c:url value='/images/navTxtSpace.gif' />"><a href="<c:url value='/project/projectMain.html' />" target="main">项目管理</a><img src="<c:url value='/images/navTxtSpace.gif' />">
         </td>
</sec:accesscontrollist>
<sec:accesscontrollist hasPermission="${P_ADMIN_STR}" secureId="${MODULE_MSG_CODE}" secureType="${MODULE_MSG_TYPE}">
         <td class="navSeperator">
         	<img src="<c:url value='/images/spacer.gif' />" width="1">
         </td>
         <td id="4" valign="bottom" class="nav5 navUnSelectedCell navCell" onclick="changeTab(this.id)">
         	<img src="<c:url value='/images/navTxtSpace.gif' />">
         		<a href="<c:url value='/message/messageMain.html' />" target="main">消息公告</a>
         	<img src="<c:url value='/images/navTxtSpace.gif' />">
         </td>
</sec:accesscontrollist>
<sec:accesscontrollist hasPermission="${P_ADMIN_STR}" secureId="${MODULE_RPT_CODE}" secureType="${MODULE_RPT_TYPE}">
         <td class="navSeperator">
         	<img src="<c:url value='/images/spacer.gif' />" width="1">
         </td>
         <td id="5" valign="bottom" class="nav6 navUnSelectedCell navCell" onclick="changeTab(this.id)">
         	<img src="<c:url value='/images/navTxtSpace.gif' />"><a href="<c:url value='/report/reportMain.html' />" target="main">分析报表</a>
         	<img src="<c:url value='/images/navTxtSpace.gif' />">
         </td>
</sec:accesscontrollist>
<sec:accesscontrollist hasPermission="${P_ADMIN_STR}" secureId="${MODULE_ADMIN_CODE}" secureType="${MODULE_ADMIN_TYPE}">
         <td class="navSeperator">
         	<img src="<c:url value='/images/spacer.gif' />" width="1">
         </td>
         <td id="6" valign="bottom" class="nav7 navUnSelectedCell navCell" onclick="changeTab(this.id)">
         	<img src="<c:url value='/images/navTxtSpace.gif' />"><a href="<c:url value='/admin/adminMain.html' />" target="main">配置管理</a>
         	<img src="<c:url value='/images/navTxtSpace.gif' />">
         </td>
</sec:accesscontrollist>
         <td class="navSeperator">
         	<img src="<c:url value='/images/spacer.gif' />" width="1">
         </td>
       </tr>
      </table>
    </td>
	<td class="loginfo" align="left">
         	<img style="float:left" src="<c:url value='/images/line.png' />">
            <div class="name_qu">
            <b> <sec:authentication property="principal.user.displayName"/></b><br /><sec:authentication property="principal.user.employee.titleWithinTheOrg"/>
            </div>
            <a href="<c:url value='/j_spring_security_logout' />" class="on-off">退出</a>
	</td>
  </tr>
</table>
<script language="javascript">
function changeTab(id) {
	  //document.getElementById(id).className = "navSelectedCell"
	  //  for(var i=0;i<7;i++) {
	  //    if(i != id)
	  //    document.getElementById(i).className = "navUnSelectedCell"
	  //  }
    $(".navCell").each(function(i){
  	  var cellId=$(this).attr("id");
  	  if(cellId==id){
  		  $(this).removeClass("navUnSelectedCell");
  		  $(this).addClass("navSelectedCell");
  	  }else{
  		  $(this).removeClass("navSelectedCell");
  		  $(this).addClass("navUnSelectedCell");
  	  }
    });
}
</script>

<script type="text/javascript" src="<c:url value='/js/mecool-notification.js' />"></script>
